// 搜索条件 配置
const publicStyle = { style: { width: "200px" } }
export const fieldList = ref([
  {
    field: "timeRange",
    type: "dateTimeRangeNorm",
    select: [
      { label: "添加时间", value: "created_at" },
      { label: "预计发货时间 x", value: "xxxxxxx" },
      { label: "审核时间", value: "reviewed_at" },
    ],
    style: { width: "360px" },
  },
  { field: "plan_no", placeholder: "计划单", type: "textarea", ...publicStyle },

  { field: "sku", placeholder: "SKU", type: "textarea", ...publicStyle },

  { field: "asin", placeholder: "Asin", type: "textarea", ...publicStyle },

  // {
  //   field: "planning_department",
  //   type: "cascaderNew",
  //   cascaderType: "department",
  //   placeholder: "计划部门",
  //   // options: { placeholder: "计划部门" },
  //   style: { width: "100%" },
  // },

  // { field: "operator_review_status", type: "select", originField: "Plan.PlanSpa.OperatorReviewStatusEnum", options: { placeholder: "状态" }, ...publicStyle },
])
// 高级搜索 配置
export const highFieldList = ref([
  {
    // label: "计划类型",
    field: "plan_type",
    type: "select",
    originField: "Plan.PlanStockingPlan.TypeEnum",
    options: { placeholder: "计划类型" },
    style: { width: "100%" },
  },
  { field: "planning_department", type: "cascaderNew", cascaderType: "department", placeholder: "计划部门", style: { width: "100%" } },

  {
    // label: "运输类型",
    field: "transportation_type",
    type: "select",
    originField: "Base.BaseAsinList.TransportationTypeEnum",
    options: { placeholder: "运输类型" },
    style: { width: "100%" },
  },
  {
    // label: "国家",
    field: "site_id",
    type: "select",
    originField: "amazonSite",
    options: { placeholder: "国家" },
    multiple: true,
    collapseTags: true,
    style: { width: "100%" },
  },
  {
    // label: "商品活跃度",
    field: "active_status",
    type: "select",
    originField: "goods_active",
    options: { placeholder: "商品活跃度" },
    style: { width: "100%" },
  },

  {
    // label: "供应商",
    field: "supplier_id",
    type: "selectV2",
    originField: "supplier",
    itemProps: {
      multiple: true,
      collapseTags: true,
      props: {
        label: "supplier_name",
        value: "s_id",
      },
    },
    options: { data: [], placeholder: "供应商" },
    style: { width: "100%" },
  },

  { field: "planner_user", type: "cascaderNew", placeholder: "计划人员", style: { width: "100%" } },
  { field: "operator_user", type: "cascaderNew", placeholder: "运营人员", style: { width: "100%" } },
])
